﻿<Window x:Class="AzManApplication.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition />
      <RowDefinition />
      <RowDefinition />
      <RowDefinition />
      <RowDefinition />
      <RowDefinition Height="Auto" />
      <RowDefinition />
    </Grid.RowDefinitions>
    <TextBlock Text="{Binding Status}" Grid.Row="0" />
    <Button Content="Some action" Name="SomeAction" Click="SomeAction_Click" Grid.Row="1" />
    <Button Content="Some action remote" Name="SomeActionRemote" Click="SomeActionRemote_Click" Grid.Row="2" />
    <Button Content="Other action" Name="OtherAction" Click="OtherAction_Click" Grid.Row="3" />
    <Button Content="Other action remote" Name="OtherActionRemote" Click="OtherActionRemote_Click" Grid.Row="4" />
    <StackPanel Orientation="Horizontal" Grid.Row="5">
      <StackPanel>
        <TextBox Text="{Binding RoleName}" />
        <Button Content="Get user names in role" Name="UserNamesInRole" Click="UserNamesInRole_Click" />
        <Button Content="Get users in role" Name="UsersInRole" Click="UsersInRole_Click" />
        <Button Content="Get all users in role" Name="AllUsersInRole" Click="AllUsersInRole_Click" />
        <Button Content="Get application groups in role" Name="AppMembersInRole" Click="AppMembersInRole_Click" />
      </StackPanel>
      <ListBox ItemsSource="{Binding AzManResults}" />
    </StackPanel>
    <Button Content="Update AzMan cache" Name="UpdateCache" Click="UpdateCache_Click" Grid.Row="6" />
  </Grid>
</Window>